//! @Author: DengLibin
//! @Date: Create in 2024-06-12 11:08:47
//! @Description: 
//! 

use json::JsonValue;

use crate::common_result::{to_common_result, CommonResult};


/// @Author: DengLibin
/// @Date: Create in 2024-06-12 11:11:41
/// @Description: 解析json字符串
pub fn parse_json(json: &str)->CommonResult<JsonValue>{
    let parsed: JsonValue = to_common_result( json::parse(json))?;
    Ok(parsed)
}